package com.github.ylt.event;

import java.io.PrintWriter;
import java.nio.channels.SocketChannel;
import java.util.Map;

public class RequestEvent {
    @Override
    public String toString() {
        return "RequestEvent{" +
                "url='" + url + '\'' +
                ", method='" + method + '\'' +
                ", protocolVersion='" + protocolVersion + '\'' +
                ", host='" + host + '\'' +
                ", port=" + port +
                ", path='" + path + '\'' +
                ", headers=" + headers +
                ", parameters=" + parameters +
                ", socketChannel=" + socketChannel +
                '}';
    }

    private String url;

    private String method;

    private String protocolVersion;

    private String host;

    private int port;

    private String path;

    private Map<String, String> headers;
    private Map<String, String> parameters;

    private SocketChannel socketChannel;

    public SocketChannel getSocketChannel() {
        return socketChannel;
    }

    public void setSocketChannel(SocketChannel socketChannel) {
        this.socketChannel = socketChannel;
    }

    public Map<String, String> getParameters() {
        return parameters;
    }

    public void setParameters(Map<String, String> parameters) {
        this.parameters = parameters;
    }

    public Map<String, String> getHeaders() {
        return headers;
    }

    public void setHeaders(Map<String, String> headers) {
        this.headers = headers;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getProtocolVersion() {
        return protocolVersion;
    }

    public void setProtocolVersion(String protocolVersion) {
        this.protocolVersion = protocolVersion;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
